hosts = %w{ubuntu@ec2-35-163-51-234.us-west-2.compute.amazonaws.com}

role :app, hosts
role :web, hosts
role :db,  hosts

set :stage, :production
set :rails_env, :production
set :unicorn_rack_env, :production

server 'ec2-35-163-51-234.us-west-2.compute.amazonaws.com',
user: 'ubuntu',
roles: %w{app web db},
ssh_options: {
     user: 'ubuntu', # overrides user setting above
     keys: %w(~/license/teddylee.pem),
     auth_methods: %w(publickey)
   }